﻿"use strict";

var kospa = kospa || {};
kospa.user = kospa.user || {};

kospa.user = (function () {
    var userVM = function () {

    };

    function initialize(vm) {
        vm.addViewModel({
            name: "User",
            bindingMemberName: "user",
            factory: userVM,
            navigatorFactory: function (vm) {
                return function (isNew) {
                    vm.view(vm.Views.Details);
                    if (isNew) {
                        vm.details().edit(isNew);
                    }
                }
            }
        });
    };

    return { initialize: initialize };
})();
